<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %>
<%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %>
<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
<%@ page import="java.util.Calendar"%>
<script language="JavaScript" src="<%= request.getContextPath() + "/js/calendar6.js" %>"></script>

  <!--SECCION DE MENSAJES DE ERROR INFORMACION PRECAUCION Y CONFIRMACION -->
  <!--MENSAJES DE INFORMACION  -->

<logic:messagesPresent message="true"> 
 <table title="Mensajes de aplicacion" align="center" >
  <tr>
    <td><html:messages id="msg" property="msgInfor" message="true">
      <table border="0" cellpadding="0" cellspacing="0">
       <tr>
         <td bgcolor="#A8BDDD" class="titalert"></td>
         <td bgcolor="#A8BDDD" class="titalert" height="30"><bean:write name="msg"/></td>
       </tr>
      </table></html:messages> 
    </td>
  </tr>
 </table>
 
  <table title="Mensajes de aplicacion" align="center" >
  <tr>
    <td><html:messages id="msg" property="msgError" message="true">
      <table border="0" cellpadding="0" cellspacing="0">
       <tr>
         <td bgcolor="#A8BDDD" class="titalert"></td>
         <td bgcolor="#A8BDDD" class="titalert" height="30"><bean:write name="msg"/></td>
       </tr>
      </table></html:messages> 
    </td>
  </tr>
 </table>
 
 <table title="Mensajes de aplicacion" align="center" >
  <tr>
    <td><html:messages id="msg" property="msgWarn" message="true">
      <table border="0" cellpadding="0" cellspacing="0">
       <tr>
         <td bgcolor="#A8BDDD" class="titalert"></td>
         <td bgcolor="#A8BDDD" class="titalert" height="30"><bean:write name="msg"/></td>
       </tr>
      </table></html:messages> 
    </td>
  </tr>
 </table>
 
 <table title="Mensajes de aplicacion" align="center" >
  <tr>
    <td><html:messages id="msg" property="msgOk" message="true">
      <table border="0" cellpadding="0" cellspacing="0">
       <tr>
         <td bgcolor="#A8BDDD" class="titalert"></td>
         <td bgcolor="#A8BDDD" class="titalert" height="30"><bean:write name="msg"/></td>
       </tr>
      </table></html:messages> 
    </td>
  </tr>
 </table>
</logic:messagesPresent> 
 
<table width="100%"  border="0" cellspacing="0" cellpadding="0" widtd="100%">
   
  <!--TITULO DEL FORMULARIO DE ACTUALIZACION  -->
  <tr align="left"> 
   <td height="25" colspan="12" align="center" class="titulosenblanco"> 
    <p>
     <STRONG>Actualizacion de la Informacion de la&nbsp;p&aacute;gina </STRONG>
    </p>
    <p>&nbsp; </p>
   </td>
   </tr>
  
  <!--CREACION DEL FORM  -->                                        
 <html:form  action="/admin/updateProgram.do"   method="post" name="programSelected" type="com.cs.paoyer.administration.web.form.ProgramForm">
  <!--CAMPO OCULTO DEL FORMULARIO: CODIGO  -->
  <input type="hidden" name="code" value='<bean:write name="programSelected" property="code" />' />
  <tr align="left">
   <td height="25" colspan="12" class="titulosenblanco">   
    <table width="100%" border="0" cellspacing="3" cellpadding="3" class="titulosenrojo">
  <!--CAMPO 1 DEL FORMULARIO: NOMBRE DEL PROGRAMA  -->
     <tr>
      <td width="28%">&nbsp;</td>
      <td width="23%" class="celdatabla"><strong>Nombre</strong> (*)&nbsp;&nbsp; 
      </td>
      <td width="46%"> 
       <input type="text" size= "40" class="form"  name="name" value='<bean:write name="programSelected" property="name" />' />
      </td>
      <td width="3%">&nbsp;</td>
     </tr>
  <!--CAMPO 2 DEL FORMULARIO:   TIPO DE PROGRAMA-->
     <tr>
		  <td width="28%">&nbsp;</td>
		  <td class="celdatabla" width="23%"><strong>Tipo de P&aacute;gina</strong> (*)&nbsp;&nbsp; 
		  </td>
		  <td width="46%"> 
       <html:select styleClass="form" property="programType" style="width:215" > 
        <html:option value = "U" >URL</html:option>
       </html:select></td>
		  <td width="3%">&nbsp;</td>
     </tr>
  <!--CAMPO 3 DEL FORMULARIO: UBICACION  -->
     <tr>
		  <td width="28%">&nbsp;</td>
		  <td class="celdatabla" width="23%"><strong>Ubicacion</strong> &nbsp;&nbsp; 
		  </td>
		  <td width="46%"> <input type="text" size= "40" class="form" value='<bean:write name="programSelected" property="target" />'  name="target"/></td>
		  <td width="3%">&nbsp;</td>
		 </tr>
 
  <!--CAMPO 8 DEL FORMULARIO: DESCRIPCION DEL PROGRAMA  -->
     <tr>
		  <td width="28%">&nbsp;</td>
		  <td width="23%" valign="top" class="celdatabla"><strong>Descripcion</strong> 
            &nbsp;&nbsp; </td>
		  <td width="46%"> <textarea  name="description" cols="35" rows="5" class="form"><bean:write name="programSelected" property="description" /></textarea></td>
		  <td width="3%">&nbsp;</td>
     </tr>

  <!--LEYENDA DE TEXTO FIJO DENTRO DEL FORMULARIO   -->
		  <tr> 
			<td class="celdatabla" colspan="3" align="center">&nbsp;Los campos marcados con (*) son obligatorios</td>
			<td width="3%">&nbsp;</td>
		  </tr>
		  <tr> 
			<td colspan="4">&nbsp;</td>
		  </tr>
  <!--BOTON DE SUBMIT   -->
		  <tr> 
			<td colspan="4" align="center"><html:image src='<%= request.getContextPath() + "/images/b_ingresar_b1.gif" %>' border="0" value='Guardar' title='Guardar' onclick='submit;' /></td>
		  </tr>
	   </table>
    </td>
  </tr>  
 </html:form>  
</table>

  <!--CALENDARIO   -->

<p align="center">
  <html:link page="/admin/findProgram.do">
    <img src="<%= request.getContextPath() + "/images/b_atras.gif" %>" width="24" height="15" border="0"/>
    <br/>
    <span class="celdaayd">Atras</span>
  </html:link>
</p>
